package com.test.service;

import com.test.model.dto.TFStatDTO;
import com.test.model.dto.UserDTO;
import com.test.model.dto.UserInfoDTO;
import com.test.model.dto.wrongTime.WrongTimeCountsDTO;
import com.test.model.pojo.MultipleQuestion;
import com.test.model.pojo.SingleQuestion;
import com.test.model.pojo.TrueFalseQuestion;
import com.test.model.vo.UserVO;
import org.apache.ibatis.session.RowBounds;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface UserService {
    UserDTO getUserByName(String username);

    TFStatDTO getUserToQuestionStateById(Integer id);

    UserDTO getUserById(Integer id);

    UserInfoDTO getUserState(Integer id);

    String getLogin(String username,String password,HttpServletRequest request);

    void updateUserQuestion(WrongTimeCountsDTO wrongTimeCountsDTO,HttpServletRequest request);

    List<SingleQuestion> getSingleQuestionPage(String search,RowBounds rowBounds,HttpServletRequest request);
    String getExit(HttpServletRequest request);
    List<MultipleQuestion> getMultiQuestionPage(String search, RowBounds rowBounds, HttpServletRequest request);

    List<TrueFalseQuestion> getTrueFalseQuestionPage(String search, RowBounds rowBounds, HttpServletRequest request);

}
